/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package bean;

import java.beans.*;
import java.io.Serializable;
import javazoom.jlgui.basicplayer.BasicPlayer;
import javazoom.jlgui.*;
import java.io.File;

/**
 *
 * @author Robert Alvarado
 */
public class Music implements Serializable {
    
     private BasicPlayer player = new BasicPlayer();
    
  
    public void Play() throws Exception {
    player.play();
    }
     
    public void AbrirFichero(String ruta) throws Exception {
    player.open(new File(ruta));
    }
     
    public void Pausa() throws Exception {
    player.pause();
    }
     
    public void Continuar() throws Exception {
    player.resume();
    }
     
    public void Stop() throws Exception {
    player.stop();
    }
    
    
}
